<template>
<!-- 底部组件 -->
  <footer>
    <div class="banxin tanxin footer_in">
      <div class="footer_in_l">
        <img src="../assets/images/home/slogan.png" alt="" />
        <p>
          叩丁狼是一家专注于培养高级IT技术人才，为学员提供定制化IT职业规划方案及意见咨询服务的教育科技公司，为您提供海量优质课程，以及创新的线上线下学习体验，帮助您获得全新的个人发展和能力提升。
        </p>
      </div>
      <ul class="footer_in_c">
        <li @mouseenter="showWx = true" @mouseleave="showWx = false">
          <a href="javascript:;">微信公众号</a>
          <img
            v-show="showWx"
            class="wx"
            src="../assets/images/home/wx.png"
            alt=""
          />
        </li>
        <li>
          <a href="javascript:;">新浪微博</a>
        </li>
        <li @mouseenter="showService = true" @mouseleave="showService = false">
          <a href="javascript:;">在线客服</a>
          <img
            v-show="showService"
            class="service"
            src="../assets/images/home/service.png"
            alt=""
          />
        </li>
      </ul>
      <div class="footer_in_r">
        <p>全国免费咨询热线：</p>
        <h2>020-85628002</h2>
      </div>
    </div>
  </footer>
</template>

<script>
export default {
  data() {
    return {
      showWx: false,
      showService: false,
    };
  },
};
</script>
 
<style lang = "less" scoped>
@import "../assets/base.less";
footer {
  background: @black;
  color: #7d879a;
  a {
    color: #7d879a;
    text-decoration: none;
    &:hover {
      color: #ffffff;
    }
  }
  .footer_in {
    height: 240px;
    .footer_in_l {
      width: 426px;
      img {
        margin-top: 33px;
        margin-bottom: 27px;
      }
      p {
        font-size: 12px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        line-height: 1.4;
      }
    }
    .footer_in_c {
      display: flex;
      justify-content: center;
      margin-top: 123px;
      li {
        border-right: 1px solid #7d879a;
        padding-right: 18px;
        padding-left: 18px;
        height: 19px;
        line-height: 19px;
        font-size: 16px;
        position: relative;
        &:last-of-type {
          border: 0;
        }
        .wx,
        .service {
          position: absolute;
          left: 50%;
          top: -110px;
          transform: translateX(-50%);
        }
      }
    }
    .footer_in_r {
      padding-top: 92px;
      p {
        font-size: 14px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #7d879a;
        margin-bottom: 10px;
      }
      h2 {
        font-size: 28px;
        font-family: SourceHanSansSC;
        font-weight: bold;
        color: #ffffff;
      }
    }
  }
}
</style>